import axios from '@/utils/request'


export const getLinesInfo = () => {
    let linesInfo = axios.get('/index/jcdata/device/getLinesInfo')
    return linesInfo
}

export const getSpecialtiesInfo = () => {
    let specialtiesInfo = axios.get('/index/jcdata/device/getSpecialtiesInfo')
    return specialtiesInfo
}

export const getDeviceInfo = (form) => {
    let deviceInfo = axios.post('/index/jcdata/device/getDeviceInfo', { form })
    return deviceInfo
}

export const editDeviceInfo = (type,form)=>{
    let editDeviceInfo = axios.post('/index/jcdata/device/editDeviceInfo', { type,form })
    return editDeviceInfo
}

export const editManyDeviceInfo = (type,form)=>{
    let editManyDeviceInfo = axios.post('/index/jcdata/device/editManyDeviceInfo', { type,form })
    return editManyDeviceInfo 
}

export const createPlan = (type,form)=>{
    let createPlan = axios.post('/index/jcdata/device/createPlan', { type,form })
    return createPlan
}

export const batchCreatePlan = (type,form)=>{
    let batchCreatePlan = axios.post('/index/jcdata/device/batchCreatePlan', { type,form })
    return batchCreatePlan
}